import {HomeModel} from "../models/homeModel";
import {LinksModel} from "../models/links";
import logger from "../utils/logger";

export const migrateLinks = async () => {
    const allLinks = await HomeModel.find({}, {link: 1, _id: 0});
    await LinksModel.insertMany(allLinks);
    logger.info('over');
}